/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upn.sigemfi.rec.be;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Diego
 */
@Entity
@Table(name = "REC_PRUEBA")
@NamedQueries({@NamedQuery(name = "RecPrueba.findAll", query = "SELECT r FROM RecPrueba r"), @NamedQuery(name = "RecPrueba.findByColumna1", query = "SELECT r FROM RecPrueba r WHERE r.columna1 = :columna1"), @NamedQuery(name = "RecPrueba.findByColumna2", query = "SELECT r FROM RecPrueba r WHERE r.columna2 = :columna2"), @NamedQuery(name = "RecPrueba.findByColumna3", query = "SELECT r FROM RecPrueba r WHERE r.columna3 = :columna3")})
public class RecPrueba implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "columna1", nullable = false)
    private Long columna1;
    @Column(name = "columna2")
    private BigInteger columna2;
    @Column(name = "columna3")
    private BigInteger columna3;

    public RecPrueba() {
    }

    public RecPrueba(Long columna1) {
        this.columna1 = columna1;
    }

    public Long getColumna1() {
        return columna1;
    }

    public void setColumna1(Long columna1) {
        this.columna1 = columna1;
    }

    public BigInteger getColumna2() {
        return columna2;
    }

    public void setColumna2(BigInteger columna2) {
        this.columna2 = columna2;
    }

    public BigInteger getColumna3() {
        return columna3;
    }

    public void setColumna3(BigInteger columna3) {
        this.columna3 = columna3;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (columna1 != null ? columna1.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RecPrueba)) {
            return false;
        }
        RecPrueba other = (RecPrueba) object;
        if ((this.columna1 == null && other.columna1 != null) || (this.columna1 != null && !this.columna1.equals(other.columna1))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "edu.upn.sigemfi.rec.be.RecPrueba[columna1=" + columna1 + "]";
    }

}
